package com.shell.petinformationmanagementsystem.entity;

public class Pet {
    private Integer id;//宠物id
    private String petName;//宠物名字
    private int age;//宠物年龄
    private String sex;//宠物性别
    private String color;//宠物毛色
    private String type;//宠物类型
    private String masterName;//主人名字

    public Pet() {
    }

    public Pet(Integer id, String petName, int age, String sex, String color, String type, String masterName) {
        this.id = id;
        this.petName = petName;
        this.age = age;
        this.sex = sex;
        this.color = color;
        this.type = type;
        this.masterName = masterName;
    }
    public Pet(String petName, int age, String sex, String color, String type, String masterName) {
        this.id = id;
        this.petName = petName;
        this.age = age;
        this.sex = sex;
        this.color = color;
        this.type = type;
        this.masterName = masterName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPetName() {
        return petName;
    }

    public void setPetName(String petName) {
        this.petName = petName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMasterName() {
        return masterName;
    }

    public void setMasterName(String masterName) {
        this.masterName = masterName;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", petName='" + petName + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", color='" + color + '\'' +
                ", type='" + type + '\'' +
                ", masterName='" + masterName + '\'' +
                '}';
    }
}
